#ifndef __BSP_KEY_H
#define __BSP_KEY_H

#include "public.h"

sbit KEY1 = P2^0;
sbit KEY2 = P4^4;
sbit KEY3 = P2^1;
sbit KEY4 = P2^2;

#define KEY1_VALUE  	1
#define KEY2_VALUE  	2
#define KEY3_VALUE  	3
#define KEY4_VALUE  	4
#define UNKEY_VALUE 	0

void KEY_GPIO_Config(void);
u8 KEY_Scan(u8 mode);

#endif
